package com.fleafinder;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class MapScreenFragmentContainer extends Fragment{

	View view = null;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		if(view != null){
			
			ViewGroup parent = (ViewGroup) view.getParent();
			parent.removeView(view);
			
			return view;
		}
		view = inflater.inflate(R.layout.mapscreen, container,
				false);
		
		return view;
	}
	
}
